package com.crane.common.core.enums;

/**
 * 是或者否枚举
 *
 * @author : pengyue
 * @since : 2019/3/15 11:32
 */
public enum YesOrNoEnum {
    /**
     *
     */
    YES(1, "是"),
    NO(0, "否");

    Integer code;
    String msg;

    YesOrNoEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
